package com.salton123.qa.demo;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

/**
 * User: newSalton@outlook.com
 * Date: 2018/10/10 3:56 PM
 * ModifyTime: 3:56 PM
 * Description:
 */
public class TestLeakAty extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);
        TextView textView = (TextView) findViewById(R.id.test_text_view);
        TestDataModel.getInstance().setRetainedTextView(textView);
        // TextView textView = null;
        // textView.setText("hello");
    }
}